package com.immunology.logic.security;

import com.immunology.dao.UserDao;
import com.immunology.database.transformers.UserTransformer;
import com.immunology.model.User;

public class SecurityService {

	private User userFromDb = null;
	
	public User getUser(String login, String password) {
		UserDao userDao = new UserDao(new UserTransformer());
		userFromDb = userDao.getUserByLoginAndPassword(login, password);
		return userFromDb;
	}
	
	public boolean confirmInputPass(String password1, String password2) {
		boolean result = false;
		if (password1.equals(password2)) {
			result = true;
		}
		return result;
	}

}
